import axios from '@/libs/api.request'
class Account {
	async getAccountList(pageNo, userName) {
    const res = await axios.get('sys/accountList',{pageNo, pageSize: 10, userName})
    return res
  }
  async deleteAccount(pkId) {
    const res = await axios.get('sys/deleteAccount',{user_acct_id: pkId})
    return res
  }
  async getAccount(userAcctId) {
    const res = await axios.get('sys/accountEdit',{userAcctId})
    return res
  }
  async saveAccount(sysAccount, userRoles) {
    const res = await axios.post('sys/accountSave', sysAccount, {userRoles})
    return res
  }
}
export default new Account()
/*
export const getAccountList = (pageNo, pageSize) => {
  return axios.request({
    url: 'sys/accountList',
		method: 'get',
		params: {
			pageNo,
			pageSize
		}
  })
}
*/